#ifndef VOLUMETOOL_H
#define VOLUMETOOL_H

#include <QWidget>
#include <QGraphicsDropShadowEffect>
#include <QPaintEvent>
#include <QPainter>

namespace Ui {
class VolumeTool;
}

class VolumeTool : public QWidget
{
    Q_OBJECT

public:
    explicit VolumeTool(QWidget *parent = nullptr);
    ~VolumeTool();

private slots:
    void on_silenceBt_clicked();

    void paintEvent(QPaintEvent *event);

    bool eventFilter(QObject *watched, QEvent *event);

    void calVolumeVal();


signals:
    void mutedClick(bool);

    void setVolumeVal(int volumeVal);

private:
    Ui::VolumeTool *ui;
    int volumeVal;
    bool isMuted;
};

#endif // VOLUMETOOL_H
